package com.anjubao.parking.municipal.roadside.model;

import com.anjubao.parking.municipal.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


@TableName("device_status")
@NoArgsConstructor
@AllArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ToString
public class DeviceStatus  {

    private static final long serialVersionUID = -9177466772776162728L;



    /**
     * 设备id
     */
    @TableId
    private Long deviceId;

    /**
     * 设备code
     */
    private String deviceCode;

    /**
     * 设备名称
     */
    private String deviceName;

    /**
     * 运行状态 0:断线 1:在线
     */
    private Integer isOnline;

    /**
     * 状态 -1：故障，0：禁用，1：正常
     */
    private Integer status;

    /**
     * 剩余电量
     */
    private Integer remainingBattery;

    /**
     * 地址
     */
    private String location;



    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
